import { BaseResponse } from './interface/index';
import ajax from "@/utils/ajax";
import Base from "./Base";
import { LoginData } from "./interface";


class Login extends Base{
	async onlogin(data:LoginData):Promise<BaseResponse>{
		try {
			return await ajax.all(this.baseUrl+'login',data,'POST')
		} catch (error) {
			this.NetErr()
			return error as BaseResponse;
		}
	}
}

export default Login